-
Notifications
You must be signed in to change notification settings - Fork 112
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Point email footer links to correct sites #1247
Conversation
Re: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM thanks for updating these
@@ -94,9 +94,11 @@ html xmlns="http://www.w3.org/1999/xhtml" | |||
tr | |||
th | |||
p.text-center | |||
a href="#" = t('mailer.about', app: APP_NAME) | |||
a href="#{MarketingSite.base_url}" | |||
= t('mailer.about', app: APP_NAME) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No need to quote this IIRC:
a href=MarketingSite.base_url
app/services/marketing_site.rb
Outdated
@@ -1,6 +1,10 @@ | |||
class MarketingSite | |||
BASE_URL = URI('https://login.gov').freeze | |||
|
|||
def self.base_url | |||
BASE_URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's .to_s
this for consistency?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anything in a view will have to_s
called on it by default (HELLO RAILS ✨ ).
I think you know this and so you are suggesting that we call to_s
here so we know in our tests we are testing the correct behavior? Want to make sure I understand
@@ -94,9 +94,11 @@ html xmlns="http://www.w3.org/1999/xhtml" | |||
tr | |||
th | |||
p.text-center | |||
a href="#" = t('mailer.about', app: APP_NAME) | |||
a href="#{MarketingSite.base_url}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thoughts on using a link_to
helper instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's what I went for at first but couldn't get it to work for some reason. The email wouldn't even get sent! If you know how, please let me know. I'll try it again too.
app/services/marketing_site.rb
Outdated
@@ -1,6 +1,10 @@ | |||
class MarketingSite | |||
BASE_URL = URI('https://login.gov').freeze | |||
|
|||
def self.base_url | |||
BASE_URL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
anything in a view will have to_s
called on it by default (HELLO RAILS ✨ ).
I think you know this and so you are suggesting that we call to_s
here so we know in our tests we are testing the correct behavior? Want to make sure I understand
d6bd4f8
to
a4de40a
Compare
@jessieay The |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🆒 🐷
@jessieay re: |
**Why**: Up until now, we had placeholder links in the email footer because we didn't have sites to point them to. Now that we do, we need to update the links. Note that the https://login.gov/policy link doesn't seem to be live yet. I'm not sure if that's the wrong URL or if the page hasn't been published yet.
a4de40a
to
4f61552
Compare
**Why**: Up until now, we had placeholder links in the email footer because we didn't have sites to point them to. Now that we do, we need to update the links. Note that the https://login.gov/policy link doesn't seem to be live yet. I'm not sure if that's the wrong URL or if the page hasn't been published yet.
Why: Up until now, we had placeholder links in the email footer
because we didn't have sites to point them to. Now that we do, we need
to update the links.
Note that the https://login.gov/policy link doesn't seem to be live yet.
I'm not sure if that's the wrong URL or if the page hasn't been
published yet.